package com.example.reader.mapper;


import com.example.reader.entity.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {
    int insert (Orders orders);
    List<Orders> selectAll(Orders orders);
    int updateById(Orders orders);

    int deleteById(Integer id);
    Orders selectById(Integer id);

    //查询逾期
    int selectDayCount(String day);

    @Select("select * from orders where order_no = #{orderNo}")
    Orders selectByOrderNo(String orderNo);
}
